Skip to content

Stabilize geocode tests#617

Closed
Mahdi451 wants to merge 4 commits intocommaai:masterfrom
Mahdi451:fix-geocode-test-flake
Closed

Stabilize geocode tests#617
Mahdi451 wants to merge 4 commits intocommaai:masterfrom
Mahdi451:fix-geocode-test-flake

Conversation

@Mahdi451
Copy link
Copy Markdown

@Mahdi451 Mahdi451 commented Mar 16, 2026

This PR stabilizes the geocode tests by replacing live Mapbox-dependent assertions with deterministic mocked responses. It also keeps the test job timeout at 2 minutes, since recent runs are already brushing up against the old 1-minute limit. Production geocoding behavior is unchanged.

The tests now cover the early return near [0, 0], request construction, normal address and place-name lookups, failure cases, and place-name fallback behavior.

Testing:

  • bun run test src/map/geocode.spec.ts --run
  • bun run test --run

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 16, 2026

Changes:

path lines diff
./map/geocode.spec.ts 153 +124

Total lines: 4862 (+124)

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 16, 2026

deployed preview: https://617.connect-d5y.pages.dev

Welcome to connect! Make sure to:

  • read the contributing guidelines
  • mark your PR as a draft until it's ready to review
  • post the preview on Discord; feedback from users will speedup the PR review

@Mahdi451 Mahdi451 force-pushed the fix-geocode-test-flake branch from 5713807 to 3d241d4 Compare March 18, 2026 00:17
@Mahdi451
Copy link
Copy Markdown
Author

@incognitojam I’m still fairly new here, so any feedback on this PR would be really appreciated.

@Mahdi451
Copy link
Copy Markdown
Author

Closing this in favor of the fork-owned integration PR: Mahdi451#1 . The combined branch includes the geocode test fixes plus the fork preview changes that will be validated in that preview.

@Mahdi451 Mahdi451 closed this Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant